home *** CD-ROM | disk | FTP | other *** search
- Path: news.iadfw.net!usenet
- From: Mark Nelson <markn@airmail.net>
- Newsgroups: comp.lang.c
- Subject: Re: Copy Binary files to printer
- Date: Fri, 19 Apr 1996 21:35:02 -0500
- Organization: customer of Internet America
- Message-ID: <31784D56.7E2@airmail.net>
- References: <4l6s6u$3cg@news.accent.net>
- NNTP-Posting-Host: dal03-09.ppp.iadfw.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0GoldB2 (Win95; I)
-
- Simon Girouard wrote:
- >
- > Hi there!
- >
- > I am writing a C program that simulate the DOS "COPY /B" command but send
- > the file to a printer on a parallel port.
- >
-
- >
- > The problem is that when writing to a file, it works fine but
- > when writing to the parrallele port "LPT1" it seems to have trouble
- > with the handshake and some garbage gets printed.
- >
- > Is there a way to fix this !
- >
- > Simon G.
-
- You might try executing the following command from the command line:
-
- MODE LPT1:,,p
-
- Normally, when the BIOS times out while writing to a printer, MS-DOS just
- throws away whatever stuff it was sending, and moves on. If you set the
- "p" parameter as shown above, it will keep retrying forever. This is
- normally what you want.
-
-
- Mark Nelson
- http://web2.airmail.net/markn
-